﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Collections;

public partial class ObjectList_ObjectListExample : System.Web.UI.MobileControls.MobilePage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            ArrayList array = new ArrayList();
            array.Add(new TeamStats("Dunes", 1, 38, 24, 8, 6, 80));
            array.Add(new TeamStats("Phoenix", 2, 38, 20, 10, 8, 70));
            array.Add(new TeamStats("Eagles", 3, 38, 20, 9, 9, 69));
            array.Add(new TeamStats("Zodiac", 4, 38, 20, 8, 10, 68));

            ObjectList1.DataSource = array;
            ObjectList1.LabelField = "TeamName";
            ObjectList1.DataBind();
        }

    }
}